package com.example.onlinemusicserver.service;

import com.example.onlinemusicserver.mapper.UserMapper;
import com.example.onlinemusicserver.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public User login(User userLogin){
       return userMapper.login(userLogin);
    }

    public User login1(String username){
        return userMapper.selectByName(username);
    }
}
